#include "circle.h"

// see circle.h
Circle::Circle(int radius) {
    this->r = radius;
}

// see circle.h
void Circle::area(void) {
    double area = pow((double) this->r, 2.0) * PI;
    cout << "\nArea of a circle is " << cPI << " * (" << (double)r << ")^2 = " << area;
}

// see circle.h
void Circle::perimeter(void) {
    double perimeter = 2 * (double)this->r * PI;
    cout << "\nPerimeter of a circle is 2 * " << cPI << " * " << (double) this->r << " = " << perimeter;
}

// see circle.h
void Circle::volume(void) {
    cout << "\nVolume is not defined for a circle.";
}
